Part Number Hot Search : 
10101 188EC SUR498H GR501 IS80C188 TP206G F0615 LM2901A
Product Description
Full Text Search
 

To Download DS1822 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
 PRELIMINARY
DS1822 Econo-MicroLAN Digital Thermometer
www.dalsemi.com
FEATURES
* * * * * * * * * * * Unique 1-Wire interface requires only one port pin for communication Multidrop capability simplifies distributed temperature sensing applications Requires no external components Can be powered from data line. Power supply range is 3.0V to 5.5V Zero standby power required Measures temperatures from -55C to +125C. Fahrenheit equivalent is -67F to +257F +2.0C accuracy from -10C to +85C Thermometer resolution is programmable from 9 to 12 bits Converts 12-bit temperature to digital word in 750 ms (max.) User-definable, temperature alarm settings Alarm search command identifies and addresses devices whose temperature is outside of programmed limits (temperature alarm condition) Software compatible with DS18B20 if temperature alarm setting volatility is not a necessity Applications include thermostatic controls, industrial systems, consumer products, thermometers, or any thermally sensitive system
TM
PIN ASSIGNMENT
NC NC VDD DQ
1 2 3 4 8 7 6 5
NC NC NC GND
DS1822Z 8-PIN SOIC (150-MIL) GND DQ
GND DQ VDD
1 2 3 DS1822 TSOC
6 5 4
NC NC NC
VDD
BOTTOM VIEW
DS1822 TO-92 PACKAGE See Mech Drawings Section
* *
PIN DESCRIPTION
GND DQ VDD NC - Ground - Data In/Out - Power Supply Voltage - No Connect
DESCRIPTION
The DS1822 Digital Thermometer provides 9 to 12-bit temperature readings which indicate the temperature of the device. Information is sent to/from the DS1822 over a 1-Wire interface, so that only one wire (and ground) needs to be connected from a central microprocessor to a DS1822. Power for reading, writing, and performing temperature conversions can be derived from the data line itself with no need for an external power source. Because each DS1822 contains a unique silicon serial number, multiple DS1822s can exist on the same 1-Wire bus. This allows for placing temperature sensors in many different places. Applications where this feature is useful include HVAC environmental controls, sensing temperatures inside buildings, equipment or machinery, and process monitoring and control.
1 of 27 021500
DS1822
DETAILED PIN DESCRIPTION Table 1
DESCRIPTION Ground. Data Input/Output pin. For 1-Wire operation: Open drain. (See "Parasite Power" section.) 3 3 3 VDD Optional VDD pin. See "Parasite Power" section for details of connection. VDD must be grounded for operation in parasite power mode. DS1822Z (8-pin SOIC): All pins not specified in this table are not to be connected. PIN TSOC 1 2 PIN 8PIN SOIC 5 4 PIN TO92 1 2 SYMBOL GND DQ
OVERVIEW
The block diagram of Figure 1 shows the major components of the DS1822. The DS1822 has four main data components: 1) 64-bit lasered ROM, 2) temperature sensor, 3) temperature alarm triggers TH and TL, and 4) a configuration register. The device derives its power from the 1-Wire communication line by storing energy on an internal capacitor during periods of time when the signal line is high and continues to operate off this power source during the low times of the 1-Wire line until it returns high to replenish the parasite (capacitor) supply. As an alternative, the DS1822 may also be powered from an external 3V 5V supply. Communication to the DS1822 is via a 1-Wire port. With the 1-Wire port, the memory and control functions will not be available before the ROM function protocol has been established. The master must first provide one of five ROM function commands: 1) Read ROM, 2) Match ROM, 3) Search ROM, 4) Skip ROM, or 5) Alarm Search. These commands operate on the 64-bit lasered ROM portion of each device and can single out a specific device if many are present on the 1-Wire line as well as indicate to the bus master how many and what types of devices are present. After a ROM function sequence has been successfully executed, the memory and control functions are accessible and the master may then provide any one of the six memory and control function commands. One control function command instructs the DS1822 to perform a temperature measurement. The result of this measurement will be placed in the DS1822's scratch-pad memory, and may be read by issuing a memory function command which reads the contents of the scratchpad memory. The temperature alarm triggers TH and TL consist of 1 byte SRAM each. If the alarm search command is not applied to the DS1822, these registers may be used as general purpose user memory. The scratchpad also contains a configuration byte to set the desired resolution of the temperature to digital conversion. Writing TH, TL, and the configuration byte is done using a memory function command. Read access to these registers is through the scratchpad. All data is read and written least significant bit first.
2 of 27
DS1822
DS1822 BLOCK DIAGRAM Figure 1
MEMORY AND CONTROL LOGIC DQ
INTERNAL VDD
64-BIT ROM AND 1-WIRE PORT
SCRATCHPAD
TEMPERATURE SENSOR
HIGH TEMPERATURE TRIGGER, TH POWER SUPPLY SENSE LOW TEMPERATURE TRIGGER, TH
VDD
8-BIT CRC GENERATOR
CONFIGURATION REGISTER
PARASITE POWER
The block diagram (Figure 1) shows the parasite-powered circuitry. This circuitry "steals" power whenever the DQ or VDD pins are high. DQ will provide sufficient power as long as the specified timing and voltage requirements are met (see the section titled "1-Wire Bus System"). The advantages of parasite power are twofold: 1) by parasiting off this pin, no local power source is needed for remote sensing of temperature, and 2) the ROM may be read in absence of normal power. In order for the DS1822 to be able to perform accurate temperature conversions, sufficient power must be provided over the DQ line when a temperature conversion is taking place. Since the operating current of the DS1822 is up to 1.5 mA, the DQ line will not have sufficient drive due to the 5K pullup resistor. This problem is particularly acute if several DS1822s are on the same DQ and attempting to convert simultaneously. There are two ways to assure that the DS1822 has sufficient supply current during its active conversion cycle. The first is to provide a strong pullup on the DQ line whenever temperature conversions are taking place. This may be accomplished by using a MOSFET to pull the DQ line directly to the power supply as shown in Figure 2. The DQ line must be switched over to the strong pull-up within 10 s maximum after issuing any protocol that involves initiating temperature conversions. When using the parasite power mode, the VDD pin must be tied to ground. Another method of supplying current to the DS1822 is through the use of an external power supply tied to the VDD pin, as shown in Figure 3. The advantage to this is that the strong pullup is not required on the DQ line, and the bus master need not be tied up holding that line high during temperature conversions. This allows other data traffic on the 1-Wire bus during the conversion time. In addition, any number of DS1822s may be placed on the 1-Wire bus, and if they all use external power, they may all simultaneously perform temperature conversions by issuing the Skip ROM command and then issuing the Convert T command. Note that as long as the external power supply is active, the GND pin may not be floating. The use of parasite power is not recommended above 100C, since it may not be able to sustain communications given the higher leakage currents the DS1822 exhibits at these temperatures. For applications in which such temperatures are likely, it is strongly recommended that VDD be applied to the DS1822.
3 of 27
DS1822
For situations where the bus master does not know whether the DS1822s on the bus are parasite powered or supplied with external VDD, a provision is made in the DS1822 to signal the power supply scheme used. The bus master can determine if any DS1822s are on the bus which require the strong pullup by sending a Skip ROM protocol, then issuing the read power supply command. After this command is issued, the master then issues read time slots. The DS1822 will send back "0" on the 1-Wire bus if it is parasite powered; it will send back a "1" if it is powered from the VDD pin. If the master receives a "0," it knows that it must supply the strong pullup on the DQ line during temperature conversions. See "Memory Command Functions" section for more detail on this command protocol.
STRONG PULL-UP FOR SUPPLYING DS1822 DURING TEMPERATURE CONVERSION Figure 2 +3V - +5V
DS1822
+3V - +5V
P
GND 4.7K I/O
VDD
USING VDD TO SUPPLY TEMPERATURE CONVERSION CURRENT Figure 3
TO OTHER 1-WIRE DEVICES DS1822
+3V - +5V GND 4.7K VDD EXTERNAL +3V - +5V SUPPLY
P
I/O
4 of 27
DS1822
OPERATION - MEASURING TEMPERATURE
The core functionality of the DS1822 is its direct-to-digital temperature sensor. The resolution of the DS1822 is configurable (9, 10, 11, or 12 bits), with 12-bit readings the power-up default state. This equates to a temperature resolution of 0.5C, 0.25C, 0.125C, or 0.0625C. Following the issuance of the Convert T [44h] command, a temperature conversion is performed and the thermal data is stored in the scratchpad memory in a 16-bit, sign-extended two's complement format. The temperature information can be retrieved over the 1-WireTM interface by issuing a Read Scratchpad [BEh] command once the conversion has been performed. The data is transferred over the 1-WireTM bus, LSB first. The MSB of the temperature register contains the "sign" (S) bit, denoting whether the temperature is positive or negative. Table 2 describes the exact relationship of output data to measured. The table assumes 12-bit resolution. If the DS1822 is configured for a lower resolution, insignificant bits will contain zeros. For Fahrenheit usage, a lookup table or conversion routine must be used.
Temperature/Data Relationships Table 2
23 MSb S S S 22 21 20 2-1 2-2 2-3 2-4 (unit = C) S S 26 25 LSb 24 MSB DIGITAL OUTPUT (Hex) 07D0h 0550h* 0191h 00A2h 0008h 0000h FFF8h FF5Eh FE6Fh FC90h LSB
TEMPERATURE
DIGITAL OUTPUT (Binary) 0000 0111 1101 0000 0000 0101 0101 0000 0000 0001 1001 0001 0000 0000 1010 0010 0000 0000 0000 1000 0000 0000 0000 0000 1111 1111 1111 1000 1111 1111 0101 1110 1111 1110 0110 1111 1111 1100 1001 0000
+125C +85C +25.0625C +10.125C +0.5C 0C -0.5C -10.125C -25.0625C -55C
*The power on reset register value is +85C
OPERATION - ALARM SIGNALING
After the DS1822 has performed a temperature conversion, the temperature value is compared to the trigger values stored in TH and TL. Since these registers are 8-bit only, bits 9-12 are ignored for comparison. The most significant bit of TH or TL directly corresponds to the sign bit of the 16-bit temperature register. If the result of a temperature measurement is higher than TH or lower than TL, an alarm flag inside the device is set. This flag is updated with every temperature measurement. As long as the alarm flag is set, the DS1822 will respond to the alarm search command. This allows many DS1822s to be connected in parallel doing simultaneous temperature measurements. If somewhere the temperature exceeds the limits, the alarming device(s) can be identified and read immediately without having to read non-alarming devices.
5 of 27
DS1822
64-BIT LASERED ROM
Each DS1822 contains a unique ROM code that is 64-bits long. The first 8 bits are a 1-Wire family code (DS1822 code is 22h). The next 48 bits are a unique serial number. The last 8 bits are a CRC of the first 56 bits. (See Figure 4.) The 64-bit ROM and ROM Function Control section allow the DS1822 to operate as a 1-Wire device and follow the 1-Wire protocol detailed in the section "1-Wire Bus System." The functions required to control sections of the DS1822 are not accessible until the ROM function protocol has been satisfied. This protocol is described in the ROM function protocol flowchart (Figure 6). The 1- Wire bus master must first provide one of five ROM function commands: 1) Read ROM, 2) Match ROM, 3) Search ROM, 4) Skip ROM, or 5) Alarm Search. After a ROM functions sequence has been successfully executed, the functions specific to the DS1822 are accessible and the bus master may then provide one of the six memory and control function commands.
CRC GENERATION
The DS1822 has an 8-bit CRC stored in the most significant byte of the 64-bit ROM. The bus master can compute a CRC value from the first 56-bits of the 64-bit ROM and compare it to the value stored within the DS1822 to determine if the ROM data has been received error-free by the bus master. The equivalent polynomial function of this CRC is: CRC = X8 + X5 + X4 + 1 The DS1822 also generates an 8-bit CRC value using the same polynomial function shown above and provides this value to the bus master to validate the transfer of data bytes. In each case where a CRC is used for data transfer validation, the bus master must calculate a CRC value using the polynomial function given above and compare the calculated value to either the 8-bit CRC value stored in the 64-bit ROM portion of the DS1822 (for ROM reads) or the 8-bit CRC value computed within the DS1822 (which is read as a ninth byte when the scratchpad is read). The comparison of CRC values and decision to continue with an operation are determined entirely by the bus master. There is no circuitry inside the DS1822 that prevents a command sequence from proceeding if the CRC stored in or calculated by the DS1822 does not match the value generated by the bus master. The 1-Wire CRC can be generated using a polynomial generator consisting of a shift register and XOR gates as shown in Figure 6. Additional information about the Dallas 1-Wire Cyclic Redundancy Check is available in Application Note 27 entitled "Understanding and Using Cyclic Redundancy Checks with Dallas Semiconductor Touch Memory Products." The shift register bits are initialized to 0. Then starting with the least significant bit of the family code, 1 bit at a time is shifted in. After the eighth bit of the family code has been entered, then the serial number is entered. After the 48th bit of the serial number has been entered, the shift register contains the CRC value. Shifting in the 8 bits of CRC should return the shift register to all 0s.
64-BIT LASERED ROM Figure 4
8-BIT CRC CODE
MSB LSB
48-BIT SERIAL NUMBER
MSB LSB
8-BIT FAMILY CODE (22h)
MSB LSB
6 of 27
DS1822
ROM FUNCTIONS FLOW CHART Figure 5
MASTER TX RESET PULSE
DS1822 TX PRESENCE PULSE
MASTER TX ROM FUNCTION COMMAND
33h READ ROM COMMAND Y
N
55h MATCH ROM COMMAND Y
N
F0h N SEARCH ROM COMMAND Y
N Ech ALARM SEARCH COMMAND Y
CCh SKIP ROM COMMAND Y
N
DS1822 TX FAMILY CODE 1 BYTE
MASTER TX BIT 0
N ALARM CONDITION ? Y
DS1822 TX BIT 0 DS1822 TX BIT 0 MASTER TX BIT 0
N DS1822 TX SERIAL NUMBER 6 BYTES BIT 0 MATCH? Y
N BIT 0 MATCH? Y DS1822 TX BIT 1 DS1822 TX BIT 1 MASTER TX BIT 1
DS1822 TX CRC BYTE
MASTER TX BIT 1
N BIT 1 MATCH? Y
N BIT 1 MATCH? Y
DS1822 TX BIT 63 MASTER TX BIT 63 DS1822 TX BIT 63 MASTER TX BIT 63
N BIT 63 MATCH?
N BIT 63 MATCH? Y
Y
MASTER TX MEMORY OR CONTROL FUNCTION COMMAND
7 of 27
DS1822
1-WIRE CRC CODE Figure 6
XOR (MSB) XOR (LSB)
INPUT
XOR
MEMORY
The DS1822's memory is organized as shown in Figure 8. The memory consists of a scratchpad RAM and a volatile SRAM, which stores the high and low temperature triggers TH and TL, and the configuration register. The scratchpad helps insure data integrity when communicating over the 1-Wire bus. Data is first written to the scratchpad using the Write Scratchpad [4Eh] command. It can then be verified by using the Read Scratchpad [BEh] command. After the data has been verified, a Copy Scratchpad [48h] command will transfer the data to the SRAM. This process insures data integrity when modifying memory. The scratchpad is organized as eight bytes of memory. The first two bytes contain the LSB and the MSB of the measured temperature information, respectively. The third and fourth bytes are shadowed copies of TH and TL and are refreshed with every power-on reset. The fifth byte is a shadowed copy of the configuration register and is refreshed with every power-on reset. The configuration register will be explained in more detail later in this section of the datasheet. The sixth, seventh, and eighth bytes are not used; upon reading, however, it will appear as all logic 1's. It is imperative that one writes TH, TL, and config in succession; i.e. a write is not valid if one writes only to TH and TL, for example, and then issues a reset. If any of these bytes must be written, all three must be written before a reset is issued. There is a ninth byte which may be read with a Read Scratchpad [BEh] command. This byte contains a cyclic redundancy check (CRC) byte which is the CRC over all of the eight previous bytes. This CRC is implemented in the fashion described in the section titled "CRC Generation".
Configuration Register
The fifth byte of the scratchpad memory is the configuration register. It contains information which will be used by the device to determine the resolution of the temperature to digital conversion. The bits are organized as shown in Figure 7.
Figure 7:
X MSb R1 R0 1 1 1 1 1 LSb
Bits 0-4 are don't cares on a write but will always read out as a 1; bit 7 is a don't care on a write but will always read out "0". R0, R1: Thermometer resolution bits. Table 3 below defines the resolution of the digital thermometer, based on the settings of these two bits. There is a direct tradeoff between resolution and conversion time, as depicted in the AC Electrical Characteristics. The power-up default of these volatile bits is R0=1 and R1=1 (12-bit conversions).
8 of 27
DS1822
Thermometer Resolution Configuration Table 3
R1 0 0 1 1 R0 0 1 0 1 Thermometer Resolution 9-bit 10-bit 11-bit 12-bit Max Conversion Time 93.75ms (tCONV/8) 187.5ms (tCONV/4) 375ms (tCONV/2) 750ms (tCONV)
DS1822 MEMORY MAP Figure 8
SCRATCHPAD BYTE TEMPERATURE LSB TEMPERATURE MSB TH/USER BYTE 1 TL/USER BYTE 2 CONFIG RESERVED RESERVED RESERVED CRC 0 1 2 3 4 5 6 7 8 TH/USER BYTE 1 TL/USER BYTE 2 CONFIG SRAM
9 of 27
DS1822
1-WIRE BUS SYSTEM
The 1-Wire bus is a system which has a single bus master and one or more slaves. The DS1822 behaves as a slave. The discussion of this bus system is broken down into three topics: hardware configuration, transaction sequence, and 1-Wire signaling (signal types and timing).
HARDWARE CONFIGURATION
The 1-Wire bus has only a single line by definition; it is important that each device on the bus be able to drive it at the appropriate time. To facilitate this, each device attached to the 1-Wire bus must have open drain or 3-state outputs. The 1-Wire port of the DS1822 (DQ pin) is open drain with an internal circuit equivalent to that shown in Figure 9. A multidrop bus consists of a 1-Wire bus with multiple slaves attached. The 1-Wire bus requires a pullup resistor of approximately 5K.
HARDWARE CONFIGURATION Figure 9
+3V - +5V DS1822 1-WIRE PORT 4.7K RX 5 A Typ. TX RX = RECEIVE TX = TRANSMIT RX
TX 100 OHM MOSFET
The idle state for the 1-Wire bus is high. If for any reason a transaction needs to be suspended, the bus MUST be left in the idle state if the transaction is to resume. Infinite recovery time can occur between bits so long as the 1-Wire bus is in the inactive (high) state during the recovery period. If this does not occur and the bus is left low for more than 480 s, all components on the bus will be reset.
TRANSACTION SEQUENCE
The protocol for accessing the DS1822 via the 1-Wire port is as follows: * * * * Initialization ROM Function Command Memory Function Command Transaction/Data
INITIALIZATION
All transactions on the 1-Wire bus begin with an initialization sequence. The initialization sequence consists of a reset pulse transmitted by the bus master followed by presence pulse(s) transmitted by the slave(s). The presence pulse lets the bus master know that the DS1822 is on the bus and is ready to operate. For more details, see the "1-Wire Signaling" section.
10 of 27
DS1822
ROM FUNCTION COMMANDS
Once the bus master has detected a presence, it can issue one of the five ROM function commands. All ROM function commands are 8 bits long. A list of these commands follows (refer to flowchart in Figure 5):
Read ROM [33h]
This command allows the bus master to read the DS1822's 8-bit family code, unique 48-bit serial number, and 8-bit CRC. This command can only be used if there is a single DS1822 on the bus. If more than one slave is present on the bus, a data collision will occur when all slaves try to transmit at the same time (open drain will produce a wired AND result).
Match ROM [55h]
The match ROM command, followed by a 64-bit ROM sequence, allows the bus master to address a specific DS1822 on a multidrop bus. Only the DS1822 that exactly matches the 64-bit ROM sequence will respond to the following memory function command. All slaves that do not match the 64-bit ROM sequence will wait for a reset pulse. This command can be used with a single or multiple devices on the bus.
Skip ROM [CCh]
This command can save time in a single drop bus system by allowing the bus master to access the memory functions without providing the 64-bit ROM code. If more than one slave is present on the bus and a Read command is issued following the Skip ROM command, data collision will occur on the bus as multiple slaves transmit simultaneously (open drain pulldowns will produce a wired AND result).
Search ROM [F0h]
When a system is initially brought up, the bus master might not know the number of devices on the 1- Wire bus or their 64-bit ROM codes. The search ROM command allows the bus master to use a process of elimination to identify the 64-bit ROM codes of all slave devices on the bus.
Alarm Search [ECh]
The flowchart of this command is identical to the Search ROM command. However, the DS1822 will respond to this command only if an alarm condition has been encountered at the last temperature measurement. An alarm condition is defined as a temperature higher than TH or lower than TL. The alarm condition remains set as long as the DS1822 is powered up, or until another temperature measurement reveals a non-alarming value. For alarming, the trigger values stored in SRAM (as opposed to the scratchpad) are taken into account. If an alarm condition exists and the TH or TL settings are changed, another temperature conversion should be done to validate any alarm conditions.
11 of 27
DS1822
Example of a ROM Search
The ROM search process is the repetition of a simple three-step routine: read a bit, read the complement of the bit, then write the desired value of that bit. The bus master performs this simple, three-step routine on each bit of the ROM. After one complete pass, the bus master knows the contents of the ROM in one device. The remaining number of devices and their ROM codes may be identified by additional passes. The following example of the ROM search process assumes four different devices are connected to the same 1-Wire bus. The ROM data of the four devices is as shown: ROM1 ROM2 ROM3 ROM4 00110101... 10101010... 11110101... 00010001...
The search process is as follows: 1. The bus master begins the initialization sequence by issuing a reset pulse. The slave devices respond by issuing simultaneous presence pulses. 2. The bus master will then issue the Search ROM command on the 1-Wire bus. 3. The bus master reads a bit from the 1-Wire bus. Each device will respond by placing the value of the first bit of their respective ROM data onto the 1-Wire bus. ROM1 and ROM4 will place a 0 onto the 1-Wire bus, i.e., pull it low. ROM2 and ROM3 will place a 1 onto the 1-Wire bus by allowing the line to stay high. The result is the logical AND of all devices on the line, therefore the bus master sees a 0. The bus master reads another bit. Since the Search ROM data command is being executed, all of the devices on the 1-Wire bus respond to this second read by placing the complement of the first bit of their respective ROM data onto the 1-Wire bus. ROM1 and ROM4 will place a 1 onto the 1-Wire, allowing the line to stay high. ROM2 and ROM3 will place a 0 onto the 1-Wire, thus it will be pulled low. The bus master again observes a 0 for the complement of the first ROM data bit. The bus master has determined that there are some devices on the 1-Wire bus that have a 0 in the first position and others that have a 1. The data obtained from the two reads of the three-step routine have the following interpretations: 00 01 10 11 There are still devices attached which have conflicting bits in this position. All devices still coupled have a 0-bit in this bit position. All devices still coupled have a 1-bit in this bit position. There are no devices attached to the 1-Wire bus.
4. The bus master writes a 0. This deselects ROM2 and ROM3 for the remainder of this search pass, leaving only ROM1 and ROM4 connected to the 1-Wire bus. 5. The bus master performs two more reads and receives a 0-bit followed by a 1-bit. This indicates that all devices still coupled to the bus have 0s as their second ROM data bit. 6. The bus master then writes a 0 to keep both ROM1 and ROM4 coupled. 7. The bus master executes two reads and receives two 0-bits. This indicates that both 1-bits and 0-bits exist as the third bit of the ROM data of the attached devices.
12 of 27
DS1822
8. The bus master writes a 0-bit. This deselects ROM1, leaving ROM4 as the only device still connected. 9. The bus master reads the remainder of the ROM bits for ROM4 and continues to access the part if desired. This completes the first pass and uniquely identifies one part on the 1-Wire bus. 10. The bus master starts a new ROM search sequence by repeating steps 1 through 7. 11. The bus master writes a 1-bit. This decouples ROM4, leaving only ROM1 still coupled. 12. The bus master reads the remainder of the ROM bits for ROM1 and communicates to the underlying logic if desired. This completes the second ROM search pass, in which another of the ROMs was found. 13. The bus master starts a new ROM search by repeating steps 1 through 3. 14. The bus master writes a 1-bit. This deselects ROM1 and ROM4 for the remainder of this search pass, leaving only ROM2 and ROM3 coupled to the system. 15. The bus master executes two Read time slots and receives two 0s. 16. The bus master writes a 0-bit. This decouples ROM3, leaving only ROM2. 17. The bus master reads the remainder of the ROM bits for ROM2 and communicates to the underlying logic if desired. This completes the third ROM search pass, in which another of the ROMs was found. 18. The bus master starts a new ROM search by repeating steps 13 through 15. 19. The bus master writes a 1-bit. This decouples ROM2, leaving only ROM3. 20. The bus master reads the remainder of the ROM bits for ROM3 and communicates to the underlying logic if desired. This completes the fourth ROM search pass, in which another of the ROMs was found.
Note the following:
The bus master learns the unique ID number (ROM data pattern) of one 1-Wire device on each ROM Search operation. The time required to derive the part's unique ROM code is: 960 s + (8 + 3 x 64) 61 s = 13.16 ms The bus master is therefore capable of identifying 75 different 1-Wire devices per second.
I/O SIGNALING
The DS1822 requires strict protocols to insure data integrity. The protocol consists of several types of signaling on one line: reset pulse, presence pulse, write 0, write 1, read 0, and read 1. All of these signals, with the exception of the presence pulse, are initiated by the bus master. The initialization sequence required to begin any communication with the DS1822 is shown in Figure 11. A reset pulse followed by a presence pulse indicates the DS1822 is ready to send or receive data given the correct ROM command and memory function command.
13 of 27
DS1822
The bus master transmits (TX) a reset pulse (a low signal for a minimum of 480 ms). The bus master then releases the line and goes into a receive mode (RX). The 1-Wire bus is pulled to a high state via the 5K pullup resistor. After detecting the rising edge on the I/O pin, the DS1822 waits 15-60 s and then transmits the presence pulse (a low signal for 60-240 s).
MEMORY COMMAND FUNCTIONS
The following command protocols are summarized in Table 4, and by the flowchart of Figure 10.
Write Scratchpad [4Eh]
This command writes to the scratchpad of the DS1822, starting at the TH register. The next three bytes written will be saved in scratchpad memory at address locations 2 through 4. All three bytes must be written before a reset is issued.
Read Scratchpad [BEh]
This command reads the contents of the scratchpad. Reading will commence at byte 0, and will continue through the scratchpad until the 9th (byte 8, CRC) byte is read. If not all locations are to be read, the master may issue a reset to terminate reading at any time.
Copy Scratchpad [48h]
This command copies the scratchpad into the SRAM memory of the DS1822, storing the temperature trigger and configuration bytes in static memory. Relative to the speed of 1-wire timing protocol, this operation can be considered immediate.
Convert T [44h]
This command begins a temperature conversion. No further data is required. The temperature conversion will be performed and then the DS1822 will remain idle. If the bus master issues read time slots following this command, the DS1822 will output 0 on the bus as long as it is busy making a temperature conversion; it will return a 1 when the temperature conversion is complete. If parasite-powered, the bus master has to enable a strong pullup for for a period greater than tconv immediately after issuing this command.
Recall SRAM [B8h]
This command recalls the temperature trigger and configuration values stored in SRAM to the scratchpad. Relative to the speed of 1-wire timing protocol, this operation can be considered immediate.
Read Power Supply [B4h]
With every read data time slot issued after this command has been sent to the DS1822, the device will signal its power mode: 0=parasite power, 1=external power supply provided.
14 of 27
DS1822
MEMORY FUNCTIONS FLOW CHART Figure 10
MASTER TX MEMORY OR CONTROL COMMAND
4Eh WRITE SCRATCHPAD ? Y
N
BEh READ SCRATCHPAD ? Y
N
DS1822 SETS ADDRESS COUNTER TO 2
DS1822 SETS ADDRESS COUNTER TO 0
MASTER TX DATA BYTE TO SCRATCHPAD N
MASTER RX DATA FROM SCRATCHPAD
Y MASTER TX RESET ? N
ADDRESS =4 ?
Y
ADDRESS =7 ? N DS1822 INCREMENTS ADDRESS N DS1822 TX DS1822 INCREMENTS SERIAL NUMBER ADDRESS 6 BYTES
Y
N
MASTER TX RESET ?
MASTER RX 8-BIT CRC OF DATA
Y MASTER TX RESET ? N Y
MASTER RX "1s"
DS1822 TX PRESENCE PULSE
15 of 27
DS1822
MEMORY FUNCTIONS FLOW CHART Figure 10 (cont'd)
48h COPY SCRATCHPAD ? Y
N
44h CONVERT TEMPERATURE ? Y
N
N
PARASITE POWER ?
Y
MASTER ENABLES STRONG PULL-UP
DS1822 CONVERTS TEMPERATURE
DS1822 BEGINS CONVERSION
MASTER DISABLES STRONG PULL-UP
Y MASTER TX RESET ? N MASTER TX RESET ? N
Y
N
DEVICE BUSY CONVERTING TEMPERATURE ?
Y
MASTER RX "1"S
MASTER RX "0"S
16 of 27
DS1822
MEMORY FUNCTIONS FLOW CHART Figure 10 (cont'd)
B8h RECALL SRAM ? Y
N
B4h READ POWERSUPPLY ? Y
N
DS1822 RECALLS FROM SRAM
Y MASTER TX RESET ? N MASTER TX RESET ? N
Y
N
DEVICE Y BUSY CONVERTING TEMPERATURE ?
N
PARASITE POWERED ?
Y
MASTER TX RESET ? Y
N
MASTER RX "1"S
MASTER RX "0"S
MASTER RX "1"S
MASTER RX "0"S
17 of 27
DS1822
INITIALIZATION PROCEDURE "RESET AND PRESENCE PULSES" Figure 11
DS1822 waits 15-60 s
DS1822 TX "presence pulse" 60-240 s
LINE TYPE LEGEND
Bus master active low Both bus master and DS1822 active low
DS1822 active low Resistor pull-up
DS1822 COMMAND SET Table 4
1-WIRE BUS AFTER ISSUING INSTRUCTION DESCRIPTION PROTOCOL PROTOCOL TEMPERATURE CONVERSION COMMANDS Convert T Initiates temperature 44h MEMORY COMMANDS Read Scratchpad Reads bytes from BEh scratchpad and reads CRC byte. Write Scratchpad Writes bytes into 4Eh through 4 (TH, TL, and config triggers). Copy Scratchpad Copies scratchpad into 48h SRAM memory (addresses 2 through 4). Recall SRAM Recalls values stored in B8h scratchpad (temp triggers and config). Read Power Supply Signals the mode of B4h DS1822 power supply to the master. NOTES 1
2
NOTES:
1. Temperature conversion takes up to 750 ms. After receiving the Convert T protocol, if the part does not receive power from the VDD pin, the DQ line for the DS1822 must be held high for at least a period greater than tconv to provide power during the conversion process. As such, no other activity may take place on the 1-Wire bus for at least this period after a Convert T command has been issued.
18 of 27
DS1822
2. All three bytes must be written before a reset is issued.
READ/WRITE TIME SLOTS
DS1822 data is read and written through the use of time slots to manipulate bits and a command word to specify the transaction.
Write Time Slots
A write time slot is initiated when the host pulls the data line from a high logic level to a low logic level. There are two types of write time slots: Write 1 time slots and Write 0 time slots. All write time slots must be a minimum of 60 s in duration with a minimum of a 1-s recovery time between individual write cycles. The DS1822 samples the DQ line in a window of 15 s to 60 s after the DQ line falls. If the line is high, a Write 1 occurs. If the line is low, a Write 0 occurs (see Figure 12). For the host to generate a Write 1 time slot, the data line must be pulled to a logic low level and then released, allowing the data line to pull up to a high level within 15 s after the start of the write time slot. For the host to generate a Write 0 time slot, the data line must be pulled to a logic low level and remain low for 60 s.
Read Time Slots
The host generates read time slots when data is to be read from the DS1822. A read time slot is initiated when the host pulls the data line from a logic high level to logic low level. The data line must remain at a low logic level for a minimum of one s; output data from the DS1822 is valid for 15 s after the falling edge of the read time slot. The host therefore must stop driving the DQ pin low in order to read its state 15 s from the start of the read slot (see Figure 12). By the end of the read time slot, the DQ pin will pull back high via the external pullup resistor. All read time slots must be a minimum of 60 s in duration with a minimum of a 1-s recovery time between individual read slots. Figure 13 shows that the sum of TINIT, TRC, and TSAMPLE must be less than 15 s. Figure 14 shows that system timing margin is maximized by keeping TINIT and TRC as small as possible and by locating the master sample time towards the end of the 15-s period.
19 of 27
DS1822
READ/WRITE TIMING DIAGRAM Figure 12
MIN
DS1822 SAMPLES TYP MAX
MIN
DS1822 SAMPLES TYP MAX
LINE TYPE LEGEND Bus master active low DS1822 active low
Both bus master and DS1822 active low
Resistor pull-up
20 of 27
DS1822
DETAILED MASTER READ 1 TIMING Figure 13
RECOMMENDED MASTER READ 1 TIMING Figure 14
LINE TYPE LEGEND Bus master active low DS1822 active low
Both bus master and DS1822 active low
Resistor pull-up
21 of 27
DS1822
Related Application Notes
The following Application Notes can be applied to the DS1822. These notes can be obtained from the Dallas Semiconductor "Application Note Book," via our website at http://www.dalsemi.com/, or through our faxback service at (214) 450-0441. Application Note 27: "Understanding and Using Cyclic Redundancy Checks with Dallas Semiconductor Touch Memory Product" Application Note 55: "Extending the Contact Range of Touch Memories" Application Note 74: "Reading and Writing Touch Memories via Serial Interfaces" Application Note 104: "Minimalist Temperature Control Demo" Application Note 106: "Complex MicroLANs" Application Note 108: "MicroLAN - In the Long Run" Sample 1-Wire subroutines that can be used in conjunction with AN74 can be downloaded from the website or our Anonymous FTP Site.
MEMORY FUNCTION EXAMPLE Table 3
Example: Bus Master initiates temperature conversion, then reads temperature (parasite power assumed). MASTER MODE TX RX TX TX TX TX TX RX TX TX TX RX DATA (LSB FIRST) Reset Presence 55h <64-bit ROM code> 44h Reset Presence 55h <64-bit ROM code> BEh <9 data bytes> COMMENTS Reset pulse (480-960 s). Presence pulse. Issue "Match ROM" command. Issue address for DS1822. Issue " Convert T" command. DQ line is held high for at least a period of time greater than tconv by bus master to allow conversion to complete. Reset pulse. Presence pulse. Issue "Match ROM" command. Issue address for DS1822. Issue "Read Scratchpad" command. Read entire scratchpad plus CRC; the master now recalculates the CRC of the eight data bytes received from the scratchpad, compares the CRC calculated and the CRC read. If they match, the master continues; if not, this read operation is repeated. Reset pulse. Presence pulse, done.
TX RX
Reset Presence
22 of 27
DS1822
MEMORY FUNCTION EXAMPLE Table 4
Example: Bus Master writes memory (parasite power and only one DS1822 assumed). MASTER MODE TX RX TX TX TX TX RX TX TX RX DATA (LSB FIRST) Reset Presence CCh 4Eh <3 data bytes> Reset Presence CCh BEh <9 data bytes> COMMENTS Reset pulse. Presence pulse. Skip ROM command. Write Scratchpad command. Write three bytes to scratchpad (TH, TL, and config). Reset pulse. Presence pulse. Skip ROM command. Read Scratchpad command. Read entire scratchpad plus CRC. The master now recalculates the CRC of the eight data bytes received from the scratchpad, compares the CRC and the two other bytes read back from the scratchpad. If data match, the master continues; if not, repeat the sequence. Reset pulse. Presence pulse. Skip ROM command. Copy Scratchpad command Reset pulse. Presence pulse, done.
TX RX TX TX TX RX
Reset Presence CCh 48h Reset Presence
23 of 27
DS1822
ABSOLUTE MAXIMUM RATINGS*
Voltage on Any Pin Relative to Ground Operating Temperature Storage Temperature Soldering Temperature -0.5V to +6.0V -55C to +125C -55C to +125C 260C for 10 seconds
* This is a stress rating only and functional operation of the device at these or any other conditions above those indicated in the operation sections of this specification is not implied. Exposure to absolute maximum rating conditions for extended periods of time may affect reliability.
RECOMMENDED DC OPERATING CONDITIONS
PARAMETER Supply Voltage SYMBOL VDD CONDITION
Local Power
MIN 3.0
TYP
MAX 5.5
UNITS V
NOTES 1
Data Pin Logic 1 Logic 0
I/O VIH VIL
-0.3 2.2 -0.3
+5.5 VCC+0.3 +0.8
V V V
1 1,2 1,3,8
DC ELECTRICAL CHARACTERISTICS
PARAMETER Thermometer Error SYMBOL tERR CONDITION -10C to +85C -55C to +125C VI/O=0.4V
(-55C to +125C; VDD=3.0V to 5.5V)
MIN TYP MAX 2 3 -0.3 -4.0 750 1 5 +0.8 1000 1.5 5.5 V mA nA mA A V V 1,3,8 1 7,9 5 6 1,2 1,2 UNITS NOTES C
Input Logic Low Sink Current Standby Current Active Current DQ Input Load Current Input Logic High
VIL IL IDDS IDD IDQ VIH
Local Power Parasite Power
2.2 3.0
24 of 27
DS1822
AC ELECTRICAL CHARACTERISTICS:
PARAMETER SYMBOL Temperature Conversion tCONV Time CONDITION 9-bit 10-bit 11-bit 12-bit
(-55C to +125C; VDD=3.0V to 5.5V)
MIN TYP MAX 93.75 187.5 375 750 120 120 15 15 UNITS NOTES ms
Time Slot Recovery Time Write 0 Low Time Write 1 Low Time Read Data Valid Reset Time High Reset Time Low Presence Detect High Presence Detect Low Capacitance
tSLOT tREC rLOW0 tLOW1 tRDV tRSTH tRSTL tPDHIGH tPDLOW CIN/OUT
60 1 60 1 480 480 15 60
60 240 25
s s s s s s s s s pF
10
NOTES:
1. All voltages are referenced to ground. 2. Logic one voltages are specified at a source current of 1 mA. 3. Logic zero voltages are specified at a sink current of 4 mA. 4. IDD specified with VCC at 5.0 volts. 5. Active current refers to active temperature conversions. 6. Input load is to ground. 7. Standby current specified up to 70C. Standby current typically is 5 A at 125C. 8. To Always guarantee a presence pulse under low voltage parasite power conditions, VILMAX may have to be reduced to as much as 0.5V. 9. To minimize IDDS, DQ should be: GND DQ GND + 0.3V or VDD - 0.3V DQ VDD. 10. Under parasite power, the max tRSTL before a power on reset occurs is 960 uS.
25 of 27
DS1822
26 of 27
DS1822
TYPICAL PERFORMANCE CURVE
DS1822 DIGITAL THERMOMETER AND THERMOSTAT TEMPERATURE READING ERROR
"TBD"
27 of 27


▲Up To Search▲   

 
Price & Availability of DS1822

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X